package com.study.service.impl;

import com.study.dao.PayInfoDao;
import com.study.entity.PayInfo;
import com.study.service.PayInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/11/7/007.
 */
@Service
public class PayInfoServiceImpl implements PayInfoService {
    @Autowired
    private PayInfoDao payInfoDao;
    @Override
    public void saveOne(PayInfo payInfo) {
        payInfoDao.save(payInfo);
    }

    @Override
    public PayInfo findByOrderId(String orderId) {
        return payInfoDao.findByOrderId(orderId);
    }
}
